<template>
	<iframe frameborder=0 scrolling='auto' :style="{width: mapWidth, height: mapHeight}" :src='iframUrl'>

	</iframe>
</template>

<script>
	export default {
		data() {
			return {
				mapWidth: '100%',
				iframUrl: '../../static/wms/common/stockSearch.html'
			};
		},
		watch: {
			'$route'(to, from) {
				this.iframUrl = "../../static/wms" + this.$route.path + ".html"
			}
		},
		computed: {
			mapHeight() {
				return '800px';
			}
		},
		mounted() {
			this.iframUrl = "../../static/wms" + this.$route.path + ".html"
		}
	}
</script>

<style>

</style>
